home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / xq-xsetup / files / setup.exe / {app} / plugins / XQ WinNT AutoLogin Settings.xpl < prev    next >
Text File  |  2002-04-11  |  2KB  |  61 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="3"
  4. "UIPATH"="Network\Auto Login\Windows NT/2K/XP"
  5. "NAME"="Settings"
  6. "VERSION"="1.58"
  7. "LANGUAGE"="VBScript"
  8. "OSVERSION"="010101"
  9. "TEXT 1"="User Name"
  10. "TEXT 2"="Password"
  11. "TEXT 3"="Domain"
  12. "DESCRIPTION 1"="Auto login can be used to bypass the "Press Ctrl+Alt+Del to login" nagging screen at bootup."
  13. "DESCRIPTION 2"="Type your user information in these boxes. The "Domain" value is needed ONLY IF you are connected to a (network) domain, else leave it blank."
  14. "DESCRIPTION 3"="Apply your changes when finished, but make sure BOTH "Enable auto login" AND "Enable auto login count" settings are ENABLED by using the "General" plug-in above, to properly activate auto login."
  15. "DESCRIPTION 4"="See this web page for more details: http://members.aol.com/axcel216/2k1.htm#BAIW"
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com/"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"="Modified by AXCEL216 [axcel216@aol.com] on 4-11-2002."
  20.  
  21. sRP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  22. Sub Plugin_Initialize
  23.  if RegPathExists(sRP) then
  24.   s=RegReadValue(sRP&"DefaultUserName")
  25.   SetUIElement 1,s
  26.  
  27.   s=RegReadValue(sRP&"DefaultPassword")
  28.   SetUIElement 2,s
  29.  
  30.   s=RegReadValue(sRP&"DefaultDomainName")
  31.   SetUIElement 3,s
  32.  else
  33.   Disable
  34.  end if
  35. End Sub
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  s=GetUIElement(1)
  42.  Call RegWriteValue(sRP&"DefaultUserName",s,1)
  43.  
  44.  s=GetUIElement(2)
  45.  Call RegWriteValue(sRP&"DefaultPassword",s,1)
  46.  
  47.  s=GetUIElement(3)
  48.  If Len(s)>0 then
  49.   Call RegWriteValue(sRP&"DefaultDomainName",s,1)
  50.  else
  51.   s=RegReadValue(sRP&"DefaultDomainName")
  52.  
  53.   if IsNull(s)=false and Len(s)>0 then
  54.      Call RegDeleteValue(sRP&"DefaultDomainName")
  55.   end if
  56.  end if
  57.  
  58. Logoff
  59. End Sub
  60. Sub Plugin_Terminate
  61. End Sub